package com.study.spring.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * Created by 汪贵春 on 2017/2/22.
 */
@Aspect
public class LoggingAspect {

    @Before("execution(* com.study.spring.aop.Calculator.*(..))")
    private void arithmeticDoLog(JoinPoint jp){
        System.out.println(jp.toString());
    }


}
